#include "harmattanfeed.h"

HarmattanFeed::HarmattanFeed(QObject *parent) : QObject(parent)
{
    m_icon = "";
    m_title = "";
    m_body = "";
}

void HarmattanFeed::pushEvent()
{
    qDebug() << "addItem( " << m_icon <<", " << m_title << "," << m_body << ", sl, dt, footer, false, url, sourceName, sourceDisplayName );";
#ifdef MEEGO_EDITION_HARMATTAN
    QDateTime dt = QDateTime::currentDateTime();
    QUrl url("meegim://");
    QString sourceName = "MeegIMFeedEvent";
    QString sourceDisplayName = "sourceDisplayName";

    if( mefeed ) {
        MEventFeed::instance()->addItem(
                    m_icon,
                    m_title,
                    m_body,
                    QStringList(),
                    dt,
                    QString(),
                    false,
                    url,
                    sourceName,
                    sourceDisplayName );
    }
//#else
//    qDebug() << "addItem( " << m_icon <<", " << m_title << "," << m_body << ", sl, dt, footer, false, url, sourceName, sourceDisplayName );";
#endif
}
